//
//  ViewController.swift
//  HuaYun
//
//  Created by enghou on 2018/6/27.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

import UIKit

class ViewController: BaseViewController {
    
    var str = "Hello, playground"
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override var names: Array<String>{
        get{
            return ["test"]
        }
    }
    
    override func path(for name: String) -> String {
        return "/tst.php"
    }
    
    override func param(for name: String) -> Dictionary<String, Any> {
        return [:]
    }
    
    override func success(for name: String) -> NetSuccess {
        func suc(_ source: JSON)->Void{
            print(source)
        }
        return suc
    }
    
    override func failBlock(for name: String) -> NetFail {
        func fail(_ code: Error)->Void{
            print("失败")
        }
        return fail
    }

}

